package fr.umlv.m2.jee.spij.persistence.education;

import fr.umlv.m2.jee.spij.framework.dao.IDAO;

import java.util.List;

/**
 * @author thomasmagny
 */
public interface ITutorialDAO extends IDAO<Long, Tutorial> {

    /**
     * @param subject
     *
     * @return
     */
    public Tutorial findBySubject(String subject);

    /**
     * @param ldapActor
     * @param type
     *
     * @return
     */
    public List<Tutorial> findByLdapActor(String ldapActor, String type);

    /**
     * @param unitId
     * @param ldapActor
     * @param type
     *
     * @return
     */
    public List<Tutorial> findByLdapActorAndUnitId(long unitId, String ldapActor,
                                                   String type);
}
